#ifndef LZKEYBOARD_H
#define LZKEYBOARD_H

#include <QDialog>
#include <QWidget>
#include <QPushButton>
#include <QGridLayout>
#include <QLineEdit>
#include <QButtonGroup>
#include <QSizePolicy>
#include "BtWidget_global.h"

class BTWIDGET_EXPORT LzKeyBoard : public QDialog
{
    Q_OBJECT
public:
    explicit LzKeyBoard(QWidget *parent = nullptr);

    void setCorrectPasswd(QString strPasswd);
    bool getResult();   /*密码是否正确*/

signals:

public slots:

private slots:
    void keyClicked(int id);

private:
    // 创建键盘布局
    void initKeyBoard();

    void clickCancel();
    void clickEnter();

private:
    QLineEdit* m_InputBox;
    QGridLayout* m_layout;
    QButtonGroup buttonGroup;

    bool m_bResult;

    QString m_strCorrectPasswd;
    QString m_strInput;
};

#endif // LZKEYBOARD_H
